<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Flot Examples</title>
    <link href="layout.css" rel="stylesheet" type="text/css"></link>
    <script language="javascript" type="text/javascript" src="./flot/excanvas.pack.js"></script>
    <script language="javascript" type="text/javascript" src="./flot/jquery.js"></script>
    <script language="javascript" type="text/javascript" src="./flot/jquery.flot.js"></script>
	<script type='text/javascript' src='/ema/dwr/interface/TermManager.js'></script>
  <script type='text/javascript' src='/ema/dwr/engine.js'></script>
<script id="source" language="javascript" type="text/javascript">
function init()
{
	refreshData()
	//每隔30秒再调用一次
	window.setInterval(refreshData,30000);
}
function refreshData()
{
	TermManager.getCurrentDate(drawline);
}
function drawline(data)
{	
	$.plot($("#placeholder"), data, { xaxis: { mode: "time" },legend: { position: 'se' } });
	
}
</script>
 </head>
    <body onLoad="init()">


    <div id="placeholder" style="width:600px;height:240px;"></div>

    



 </body>
</html>
